package autoorder.zsxmlv.po;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Task {
    private Integer id;

    private Integer successNum = 0;

    private Integer failNum = 0;

    private Integer executeStatus = 0;

    private String errorIds;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date endTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSuccessNum() {
        return successNum;
    }

    public void setSuccessNum(Integer successNum) {
        this.successNum = successNum;
    }

    public Integer getFailNum() {
        return failNum;
    }

    public void setFailNum(Integer failNum) {
        this.failNum = failNum;
    }

    public Integer getExecuteStatus() {
        return executeStatus;
    }

    public void setExecuteStatus(Integer executeStatus) {
        this.executeStatus = executeStatus;
    }

    public String getErrorIds() {
        return errorIds;
    }

    public void setErrorIds(String errorIds) {
        this.errorIds = errorIds;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Task() {
    }

    public Task(Integer successNum, Integer failNum, Integer executeStatus, String errorIds, Date createTime, Date endTime, Date updateTime) {
        this.successNum = successNum;
        this.failNum = failNum;
        this.executeStatus = executeStatus;
        this.errorIds = errorIds;
        this.createTime = createTime;
        this.endTime = endTime;
        this.updateTime = updateTime;
    }

    public Task(Integer id, Integer successNum, Integer failNum, Integer executeStatus, String errorIds, Date createTime, Date endTime, Date updateTime) {
        this.id = id;
        this.successNum = successNum;
        this.failNum = failNum;
        this.executeStatus = executeStatus;
        this.errorIds = errorIds;
        this.createTime = createTime;
        this.endTime = endTime;
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Task{" +
                "id=" + id +
                ", successNum=" + successNum +
                ", failNum=" + failNum +
                ", executeStatus=" + executeStatus +
                ", errorIds='" + errorIds + '\'' +
                ", createTime=" + createTime +
                ", endTime=" + endTime +
                ", updateTime=" + updateTime +
                '}';
    }
}